import { defineConfig } from 'vite'
import inject from '@rollup/plugin-inject'

export default defineConfig({
  plugins: [
    inject({
      $: 'jquery',
      jQuery: 'jquery'
    })
  ],
  define: {
    global: 'globalThis'
  },
  optimizeDeps: {
    include: ['jquery']
  }
})